tags:
  - sftp
summary: 列出目录
description: 列出目录
operationId: "{{ uniqueOpId() }}"
requestBody:
  content:
    application/json:
      schema:
        type: object
        properties:
          token:
            type: string
            description: 访问令牌
          id:
            type: string
            description: SSH连接ID
          path:
            type: string
            description: 目录路径
responses:
  "200":
    description: 成功
    content:
      application/json:
        schema:
          type: object
          properties:
            fileList:
              type: array
              items:
                $ref: "@schemas/fileInfo.yml.njk"
              description: 目录列表
  "500":
    description:  失败
    content:
      application/json:
        schema:
          $ref: "@schemas/errInfo.yml.njk"